<%--
  Created by IntelliJ IDEA.
  User: 14122
  Date: 2022/8/19
  Time: 11:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
    <div class="body-content">



        <form method="post" class="form-x" action="${pageContext.request.contextPath}/employee/updateEmployee">
            <div class="form-group">
                <div class="field">
                    <input type="hidden" value="${employeeById.empId}" name="empId"
                           data-validate="required:请输入用户名"/>
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>用户名</label>
                </div>

                <div class="field">
                    <input type="text" class="input w50" value="${employeeById.userName}" name="userName"
                           data-validate="required:请输入用户名"/>
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>真实姓名</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${employeeById.name}" name="name"
                           data-validate="required:请输入真实姓名"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>密码</label>
                </div>
                <div class="field">
                    <input type="password" class="input w50" value="${employeeById.password}" name="password"
                           data-validate="required:请输入你的真实姓名"/>
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label>性别</label>
                </div>
                <c:if test="${employeeById.gender==1}">

                <div class="field">
                    男： <input type="radio" value="1" name="gender"
                              datida-valate="required:请选择性别" checked/>
                    <div class="tips"></div>
                </div>
                <div class="field">
                    女： <input type="radio" value="1" name="gender"
                              datida-valate="required:请选择性别"/>
                    <div class="tips"></div>
                </div>
            </div>
            </c:if>



            <c:if test="${employeeById.gender==0}">

            <div class="field">
                男： <input type="radio" value="1" name="gender"
                          datida-valate="required:请选择性别"/>
                <div class="tips"></div>
            </div>
            <div class="field">
                女： <input type="radio" value="1" name="gender"
                          datida-valate="required:请选择性别" checked/>
                <div class="tips"></div>
            </div>
    </div>
    </c:if>


    <div class="form-group">
        <div class="label">
            <label>电话</label>
        </div>
        <div class="field">
            <input type="text" class="input w50" value="${employeeById.phone}" name="phone"
                   data-validate="required:请输入电话"/>
            <div class="tips"></div>
        </div>
    </div>
    <div class="form-group">
        <div class="label">
            <label>地址</label>
        </div>
        <div class="field">
            <input type="text" class="input w50" value="${employeeById.address}" name="address"
                   data-validate="required:请输入地址"/>
            <div class="tips"></div>
        </div>
    </div>

    <div class="form-group">
        <div class="label">
            <label>邮箱</label>
        </div>
        <div class="field">
            <input type="text" class="input w50" value="${employeeById.email}" name="email"
                   data-validate="required:请输入邮箱地址"/>
            <div class="tips"></div>
        </div>
    </div>


    <div class="form-group">
        <div class="label">
            <label>在职状态</label>
        </div>
        <div class="field">
            <input type="text" class="input w50" value="${employeeById.deleted}" name="deleted"
                   data-validate="required:请输入在值状态"/>
            <div class="tips"></div>
        </div>
    </div>


    <div class="form-group">
        <div class="label">
            <label></label>
        </div>
        <div class="field">
            <button class="button bg-main icon-check-square-o" type="submit">
                提交
            </button>
        </div>
    </div>
    </form>
</div>
</div>

</body>
</html>
